pkgname=spacman
pkgdesc="A small tool to reduce the number of times you need to type sudo when using pacman."
pkgver=0.2.0
source=("$pkgname.c")
sha1sums=(SKIP)
arch=(any)
pkgrel=1

build() {
        CFLAGS="-Wall -Wextra -Wpedantic 
    -Wmissing-declarations -Wstrict-prototypes -Wconversion 
    -Wno-missing-declarations -std=c23 -g3 -lm -O2 $CFLAGS"
        gcc $CFLAGS "$pkgname.c" -o "$pkgname"
}

package() {
        install -d ${pkgdir}/usr/bin
        install -m4755 "${srcdir}/${pkgname}" ${pkgdir}/usr/bin/
}
